package com.cqwshzj.framework.job;/**
 * @Description:
 * @Auther: Huang Zhijin
 * @Version: 1.0.0
 * @Date: 2021/4/8 19:09
 */

import com.dangdang.ddframe.job.api.ShardingContext;

/**
 *
 * 〈〉
 *
 * @author Huang Zhijin
 * @create 2021/4/8
 * @since 1.0.0
 */
public abstract class AbstractBizSimpleJob extends AbstractSimpleJob {

	protected String currentJobId;

	public String getCurrentJobId() {
		return currentJobId;
	}

	public void setCurrentJobId(String currentJobId) {
		this.currentJobId = currentJobId;
	}


	@Override
	public void initInstanceProperties(ShardingContext shardingContext) {
		super.initInstanceProperties(shardingContext);
		currentJobId = shardingContext.getShardingParameter();
	}

}
